using UnityEngine;
using System.Collections;



public class InputController : MonoBehaviour {

	[HideInInspector] public bool inputLMouse = false;
	[HideInInspector] public bool inputRMouse = false;
	[HideInInspector] public bool inputKeyW = false;
	[HideInInspector] public bool inputKeyS = false;
	[HideInInspector] public bool inputKeyA = false;
	[HideInInspector] public bool inputKeyD = false;
	[HideInInspector] public bool inputKeyR = false;
	[HideInInspector] public bool inputKeySPACE = false;
	[HideInInspector] public bool inputKeyESC = false;
	[HideInInspector] public bool inputKeySHIFTL = false;
	[HideInInspector] public float inputMouseX = 0.0f;
	[HideInInspector] public float inputMouseY = 0.0f;
	[HideInInspector] public float inputMouseWheel = 0.0f;
		


	void Update () {
		//"WASD"按键
		inputKeyW = Input.GetKey("w");
		inputKeyS = Input.GetKey("s");
		inputKeyA = Input.GetKey("a");
		inputKeyD = Input.GetKey("d");
		inputKeyR = Input.GetKey("r");
			
		//左键
		inputLMouse = Input.GetKey("mouse 0");

		//右键
		inputRMouse = Input.GetKey("mouse 1");

		// 鼠标位置
		inputMouseX = Input.GetAxisRaw("Mouse X");
		inputMouseY = Input.GetAxisRaw("Mouse Y");
		//鼠标滚轮
		inputMouseWheel = Input.GetAxisRaw("Mouse ScrollWheel");
		
		//左shift
		inputKeySHIFTL = Input.GetKey("left shift");
		//空格
		inputKeySPACE = Input.GetKey("space");
		// ESC
		inputKeyESC = Input.GetKey("escape");

	}

}